# --------Strings Review--------
import math
str_0 = "456187984.16"
# Assume all you know is that str_0 is numeric but not the excact value.
# Finish the following tasks with only 1 statement each:

# Task 1: Print the last member of str_0:
print(str_0[-1])  # √

# Task 2: Print the length of str_0.
print(len(str_0))  # √

# Task 3: Is "." included in str_0? Print the result.
location = str_0.find('.')  # ×
if location > 0:
    print('True')

print("." in str_0)  # This would be better

# Task 4: Print the index of the 1st "6" of str_0.
print(str_0.find('6'))  # √

# Task 5: Print str_0 with all of the "6" altered to "0"
# (without changing the original value of str_0).
print(str_0.replace('6', '0'))  # √

# Task 6: Print str_0 from the 2nd member to and including the last member.
print(str_0[2:])  # ×

print(str_0[1:])  # In python 1 refers to the 2nd.

# Task 7: Print str_0 from the start to but not including the last member.
print(str_0[:-1])  # √

# Task 8: Print str_0 within the middle of "Hello" and "World".
print('Hello ' + str(str_0) + ' World')  # --could be easier
print(f"Hello {str_0} World")  # This would be better

# Task 9: Calculate and print the actual number of str_0 plus 100.
print(float(str_0)+100)  # √

# Task 10: Convert str_0 to True or False and print it.
print(bool(str_0))  # √
print(bool(""))  # √

# Task 11: Convert str_0 to a interger. What do you expect?
print(math.floor(float(str_0)))  # √
# 456187984
# Task 12: Print the type of str_0.
print(type(str_0))  # √

str_1 = ""
# Task 13: Convert str_1 to True or False and print it. Which value do you expect?
bool(str_1)  # √
# False # √

str_1 = "-1"
# Task 14: Convert str_1 to True or False and print it. Which value do you expect?
bool(str_1)  # √
# True
# Task 15: Print the following:
# Hi Albert.
# Thank you.
print('''
Hi Albert.
Thank you.
''')  # √

# Task 16: Print the followtin without using triple ' or ".
# It's another "fantastic" journey.
print("It's a another " + '"fantastic" journey.')  # √

str_2 = "Albert is here."
# Task 17:
# Print "ALBERT IS HERE." using str_2.
print(str_2.upper())  # √
# Print "Albert Is Here." using str_2.
print(str_2.title())  # √
# Print "albert is here." using str_2.
print(str_2.lower())  # √
# Append str_2 with "let's go" changing itself and print it.
print(str_2 + " Let's go")  # × You need to change itself fist.

str_2 += " Let's go"
print(str_2)
